package com.cn.pet.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


public class ItemVO {

    private int id;
    private String itemName;
    private String shopName;
    private BigDecimal price;
    private BigDecimal saleCount;
    private BigDecimal commentCount;
    private String location;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date datetime;
    private String url;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(BigDecimal saleCount) {
        this.saleCount = saleCount;
    }

    public BigDecimal getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(BigDecimal commentCount) {
        this.commentCount = commentCount;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "ItemVO{" +
                "id=" + id +
                ", itemName='" + itemName + '\'' +
                ", shopName='" + shopName + '\'' +
                ", price=" + price +
                ", saleCount=" + saleCount +
                ", commentCount=" + commentCount +
                ", location='" + location + '\'' +
                ", datetime=" + datetime +
                ", url='" + url + '\'' +
                '}';
    }
}
